package com.travel.travel_springboot_web.service;

import com.travel.travel_springboot_web.entity.Banner;
import com.travel.travel_springboot_web.mapper.BannerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannerService {
    
    @Autowired
    private BannerMapper bannerMapper;
    
    public List<Banner> getAllActiveBanners() {
        return bannerMapper.findAllActive();
    }
} 